import request from "@/utils/request";

export function pageRole(params){
    return request({
        url: '/api/rabc/role/page',
        method: 'get',
        params
    })
}
export function listRole(){
    return request({
        url: '/api/rabc/role/list',
        method: 'get'
    })
}
export function addRole(data) {
    return request({
        url: '/api/rabc/role/add',
        method: 'post',
        data
    })
}
export function updateRole(data) {
    return request({
        url: '/api/rabc/role/update',
        method: 'post',
        data
    })
}
export function deleteRole(id) {
    return request({
        url: '/api/rabc/role/delete',
        method: 'post',
        data:{
            id
        }
    })
}